﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DienTich
{
    class TamGiac
    {
        long dt, day, cao;
        public void NhapCanh()
        {
            Console.Write("Nhap day tam giac: ");
            day = long.Parse(Console.ReadLine());
            Console.Write("Nhap chieu cao tam giac: ");
            cao = long.Parse(Console.ReadLine());
        }
        public long TinhDT()
        {
            dt = day * cao / 2;
            return dt;
        }
    }
}
